const express = require("express");
const cors = require("cors");

const getRoute = require("./Route/routeOne");
const app = express();

app.use(cors());
app.use(express.json());
app.use(express.urlencoded({ extended: false }));

app.use("/getdata", getRoute);

app.use("/", (req, res) => {
  res.send("404 Not Found");
});

app.listen(3000, () => {
  console.log("3000 Port Start");
});
